package com.hspedu.collection_;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class List_ {
    public static void main(String[] args) {
        @SuppressWarnings({"all"})
        List list = new ArrayList();
        ArrayList list1 = new ArrayList();
        list.add("jack");
        list.add(true);
        list.add(1);
        Iterator iterator = list.iterator();
        while (iterator.hasNext()){
            Object obj = iterator.next();
            System.out.println(obj);
        }
        iterator = list.iterator();
    }
}
